package com.my.chapter9;

public class practice2 {
    public static void main(String[] args) {
        //Type t = new Type();
        Type1 t = new Type1();
        t.display();
    }
}

abstract class Type{
    public void display(){
        System.out.println("display()");
    }
}

class Type1 extends Type{
    public Type1(){
        System.out.println("Type1");
    }
}
